export function request(methods, url, params) {
    return new Promise((resolve, reject) => {
        wx.request({
            url: url,
            data: params,
            header: { 'content-type': 'application/json' },
            method: methods,
            dataType: 'json',
            responseType: 'text',
            success: (result) => {
                resolve(result)
            },
            fail: (err) => {
                reject(err)
            },
            complete: () => { }
        });
    })
}